export const getRandomAvatar = () => {
  const randomIndex = Math.floor(Math.random() * 10) + 1;
  return new URL(`../assets/avatar/avatar_${randomIndex}.png`, import.meta.url).href;
}

// 支持动态导入的函数
export const getIndexAvatar = (index: number) => {
   return new URL(`../assets/avatar/avatar_${index}.png`, import.meta.url).href;
};